python1.ipynb
No Headings
The table of contents shows headings in notebooks and supported files.
- File
- Edit
- View
- Run
- Kernel
- Settings
- Help
Kernel status: Idle
[6]:
print("athifa.m.v")
print("21")
print("salamathifa565@gmail.com")
athifa.m.v 21 salamathifa565@gmail.com
[8]:
print("athifa.m.v\n21\nsalamathifa565@gmail.com")
athifa.m.v 21 salamathifa565@gmail.com
[34]:
#define the two numbers
num1 = 14
num2 = 7
[18]:
#perform the operations
addition = num1 + num2
substraction = num1 - num2
multiplication = num1 * num2
division = num1 / num2
[24]:
#display the results
print(f"{num1} + {num2} = {addition}")
print(f"{num1} - {num2} = {substraction}")
print(f"{num1} * {num2} = {multiplication}")
print(f"{num1} / {num2} = {division}")
14 + 7 = 21 14 - 7 = 7 14 * 7 = 98 14 / 7 = 2.0
[28]:
#loop through numbers 1 to 5
for number in range (1,6):
print(number)
1 2 3 4 5
"SDK" stands for "software development kit",whereas "IDK stands for "integreted development enviornment".
python is an "awesome" language. pyhton 2023 i'm from entri 5 e entri 2023 entr2023 entri*
type of num: <class 'int'> type of textnum: <class 'str'> type of decimal : <class 'float'> Sum of variables: 178.3 Type of the sum: <class 'float'>
This program calculates the total number of minutes in a year. Days in a year: 365 Hours in a day: 24 Minutes in an hour: 60 Total number of minutes in a year: 525600
please enter your name: tony
Hi tony, welcome to python programming :)
Please enter amount in pounds: 100
£100.0 are $125.00
Common Tools
No metadata.
Advanced Tools
No metadata.
Anaconda Assistant
4.1.0
Agree to use Assistant
Anaconda Assistant is an AI-powered chat application designed to enhance the productivity of data scientists, developers, and researchers.
Terms and Conditions
By clicking the continue button, you agree to our Terms and Conditions and Privacy Policy.
Confirm Your Age
I hereby confirm that I'm older than 13 years old.
Data Collection (Optional)
Not enabled
Help us improve the Anaconda Assistant. Enabling data collection means you acknowledge and agree that we can collect messages and metadata, including sensitive information that may be in your conversations with Anaconda Assistant.
You can opt out of this at any time in the settings menu.
![Python [conda env:base] *](./python1_files/logo-64x64.png)